﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace RaikesSimplexService.DataModel
{
    [DataContract]
    public class Solution
    {
        /// <summary>
        /// An array of optimized values for the variables.
        /// </summary>
        [DataMember]
        public double[] Values { get; set; }

        /// <summary>
        /// Set true if alternate solutions exist.
        /// </summary>
        [DataMember]
        public bool AlternateSolutionsExist { get; set; }

        /// <summary>
        /// Set true if there exists no feasible solution.
        /// </summary>
        [DataMember]
        public bool IsInfeasible { get; set; }

        /// <summary>
        /// Set true if max iterations were reached without finding a solution.
        /// </summary>
        [DataMember]
        public bool TimedOut { get; set; }
    }
}
